﻿using System;
using System.Data;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using NHibernate;
using NHibernate.Cfg;
using NHibernate.Expression;

using butterfly;
using butterfly.data.utils;

public partial class page_Default : System.Web.UI.Page
{
    

    protected void Page_Load(object sender, EventArgs e)
    {
        ISession session = NHibernateSessionManager.Instance.GetSession();
        IList list = session.CreateQuery("from User").List();
        //ICriteria crit = session.CreateCriteria(User.GetType());
        //IList list = crit.List();
        lblTest.Text = list.Count.ToString();
        
    }
}
